This page last changed on Dec 14, 2004 by plightbo.

Stream

直接向HttpServletResponse发送(通过InputStream)原始(raw)数据流. 用户下载正文时非常有用.

参数 必需 缺省值 描述
inputName inputStream 活动中类型为InputStream的属性的名字(如getInputStream())
contentType text/plain 返回的正文类型
contentDisposition inline 响应的头信息Content-disposition的值. 典型的值是filename="doc.pdf"
bufferSize 1024 缓冲大小(字节数)

Example:

<result name="success" type="stream">
    <param name="inputName">inputStream</param>
    <param name="contentType">${contentType}</param>
    <param name="contentDisposition">filename="${filename}"</param>
    <param name="bufferSize">2024</param>
</result>

Document generated by Confluence on Dec 14, 2004 16:36